package com.sxhalo.manage.map;

/**
 * ProjectContactsId entity. @author MyEclipse Persistence Tools
 */

public class ProjectContactsId implements java.io.Serializable {

	// Fields

	private Integer projectId;
	private Integer contactId;

	// Constructors

	/** default constructor */
	public ProjectContactsId() {
	}

	/** full constructor */
	public ProjectContactsId(Integer projectId, Integer contactId) {
		this.projectId = projectId;
		this.contactId = contactId;
	}

	// Property accessors

	public Integer getProjectId() {
		return this.projectId;
	}

	public void setProjectId(Integer projectId) {
		this.projectId = projectId;
	}

	public Integer getContactId() {
		return this.contactId;
	}

	public void setContactId(Integer contactId) {
		this.contactId = contactId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ProjectContactsId))
			return false;
		ProjectContactsId castOther = (ProjectContactsId) other;

		return ((this.getProjectId() == castOther.getProjectId()) || (this
				.getProjectId() != null && castOther.getProjectId() != null && this
				.getProjectId().equals(castOther.getProjectId())))
				&& ((this.getContactId() == castOther.getContactId()) || (this
						.getContactId() != null
						&& castOther.getContactId() != null && this
						.getContactId().equals(castOther.getContactId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getProjectId() == null ? 0 : this.getProjectId().hashCode());
		result = 37 * result
				+ (getContactId() == null ? 0 : this.getContactId().hashCode());
		return result;
	}

}